import 'package:fish_redux/fish_redux.dart';
import 'package:school_safe_teacher/homeWorkList/entity/homeWorkListEntity.dart';

//TODO replace with your own action
enum homeWorkListAction { action,
onrefresh,
onload,
  onSuccess,
  onComplete,}

class homeWorkListActionCreator {
  static Action onAction() {
    return const Action(homeWorkListAction.action);
  }
  static Action onRefresh() {
    return Action(homeWorkListAction.onrefresh);
  }
  static Action onload() {
    return Action(homeWorkListAction.onload);
  }
  static Action onSuccess(List<homeWorkListEntity> newsList) {
    return Action(homeWorkListAction.onSuccess,payload: newsList);
  }
  static Action onComplete() {
    return Action(homeWorkListAction.onComplete);
  }

}
